home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: void pointers
- Date: Sat, 13 Jan 96 01:08:02 GMT
- Organization: none
- Message-ID: <821495282snz@genesis.demon.co.uk>
- References: <1996Jan12.133322.1@ccc.govt.nz> <4d6h8k$p6u@axe.netdoor.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4d6h8k$p6u@axe.netdoor.com>
- esargent@netdoor.com "Eric Sargent" writes:
-
- >void (char, etc..) *clipPP;
- >
- >getFence(&clipPP); (may need to be cast if not a void pointer)
-
- This falls into the trap! :-)
-
- A void ** may only portably point to a void *. Trying to make it point
- to anything else, even with a cast, results in undefined (or at best
- implementation defined) behaviour. void ** is not a generic pointer to
- pointer, it is simply a pointer to a void * object.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-